{block header}
	<div class="hero-unit">
		<h1>Seznam událostí</h1>
	</div>
{/block}

{block content}
<div class="row">
	<div class="span12">
		{control grid}
	</div>
</div>
{**
	<table n:if="$events" class="table table-bordered table-condensed table-striped table-hover">
		<thead>
			<th class="span2">Vytvořeno</th>
			<th>Založil</th>
			<th>Jméno</th>
			<th>Místo konání</th>
			<th>Od</th>
			<th>Do</th>
			<th>Míst</th>
			<th class="span2">Akce</th>
		</thead>
		<tbody>
			<tr n:foreach="$events as $event">
				<td><i class="icon-calendar"></i> {$event->created|date:'j.n.Y'}</td>
				<td><a n:href="Users:detail, $event->place" class="ajax"><i class="icon-user"></i> {$event->nameUser}</a></td>
				<td><a n:href="detail, $event->id" class="ajax">{$event->name}</a></td>
				<td><a n:href="Places:detail, $event->place" class="ajax">{$event->namePlace}</a></td>
				<td><i class="icon-calendar"></i> {$event->from|date:'j.n.Y - H:i'}</td>
				<td><i class="icon-calendar"></i> {$event->to|date:'j.n.Y - H:i'}</td>
				<td>{$event->placesFree}</td>
				<td>
					<a n:href="add, $event->id" class="ajax"><i class="icon-plus-sign" title="Přidat rezervaci"></i></a>
					<a n:href="detail, $event->id" class="ajax"><i class="icon-list-alt" title="Detail události"></i></a>
					<a n:href="edit, $event->id" class="ajax"><i class="icon-pencil" title="Upravit událost"></i></a>
					<a n:href="delete, $event->id" class="ajax"><i class="icon-trash" title="Smazat událost"></i></a>
				</td>
			</tr>
		</tbody>
	</table>
	<p n:if="!$events">Nemáte v databázi žádné událsti.</p>
***}
